package com.dxl.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import com.dxl.system.model.Note;
import com.dxl.system.model.Label;

import java.util.List;
/**
 * <b> NoteMapper
 * </b><br><br><i>Description</i> :
 * <br>Date: 2019-09-29     <br>Author : dxl
 */
public interface NoteMapper extends BaseMapper<Note>{
    /**
     * <b> 查询笔记中全部标签
     * </b><br><br><i>Description</i> : 联表
     * @param id Integer
     * @return List: Label
     * <br><br>Date: 2019-09-29    <br>Author : dxl
     */
    public List<Label> getAllLabelInNote(Integer id);


   /**
    * <b> 联表查询笔记
    * </b><br><br><i>Description</i> : 联表查询，联表：系列 标签笔记关联 标签 
    * @param wrapper QueryWrapper
    * @return List: Note
    * <br><br>Date: 2019-09-29     <br>Author : dxl
    */
   public List<Note> getJoinLabelSeries(@Param(Constants.WRAPPER) QueryWrapper wrapper);
}

